package com.bw.mallshop.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.bw.mallshop.entity.UserEntityValues;

import java.util.List;

import io.reactivex.Maybe;

@Dao
public interface UserDao {
    //添加数据
    @Insert
    void insertUsers(UserEntityValues ... entityValues);
    //查询数据
    @Query("SELECT * from userentityvalues")
    Maybe<List<UserEntityValues>>queryUserList();
    //删除数据
    @Delete
    void delete(UserEntityValues entityValues);
    //修改数据
    @Update
    void update(UserEntityValues entityValues);
}
